import {
    DoubleSide,
    Mesh,
    MeshBasicMaterial,
    PlaneGeometry,
    RepeatWrapping,
    TextureLoader,
} from "three";

const geometry = new PlaneGeometry(60, 60);
const textureLoader = new TextureLoader();
const texture = textureLoader.load("/tx3.png");
texture.wrapS = RepeatWrapping;
texture.wrapT = RepeatWrapping;
const material = new MeshBasicMaterial({
    map: texture,
    transparent: true, // 使用背景透明的png贴图，注意开启透明计算
    side: DoubleSide,
});

const meshGeometry = new Mesh(geometry, material);
export { meshGeometry, texture };
